<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> 
 
<head> 
	<title>Sprint-Welcome</title> 
	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> 
	<meta http-equiv="Content-Style-Type" content="text/css" /> 

	<script src="./js/lib/prototype.js" type="text/javascript" charset="utf-8"></script>	  	
   	<script src="./js/lib/scriptaculous.js" type="text/javascript" charset="utf-8"></script>   	

  	<script src="./js/rssParser.js" type="text/javascript" charset="utf-8"></script>
	<link href='./css/rssStyle.css' rel="styleSheet" type="text/css" media="all"/> 	
	
	<script type="text/javascript" src="http://www.google.com/jsapi?key=ABQIAAAAs8dxADZrfBXfh2tREJPb7xT2yXp_ZAY8_ufC3CFXhHIE1NvwkxQyAkejMCCvSQUyJSozWMVGOQPFvA"></script>	
</head>

<body>
		
			<!-- ------------------------------------- -->
			<!-- RSS View mode content will come here. -->
			<!-- ------------------------------------- -->

		  <div class="xRSSPortletDisp" id="xRSSPortletDisp">
				<div id="xRSSViewMode" class="xRSSViewMode" >	    
						<div id="feed"></div>
					    <div id="xRSSContent" class="xRSSContent">
							  Loading.......
					    </div><!-- End  xRSSContent tag-->
					    <div id="xRSSContentError" class="xRSSContentError">
					    	  error.feed.url.invalid....
					    </div>
			   </div>
				<!-- ------------------------------------- -->
				<!-- RSS View mode ends. -->
				<!-- ------------------------------------- -->
		  </div>	
	
<script type="text/javascript">
	google.load("feeds", "1"); //Load Google Ajax Feed API (version 1)
	hideAllContent();
    /**
     * Hide all the error messages inititally.
     */
	function hideAllContent(){
		// alert("hide called.." + $("xRSSContent").innerHTML);
	     //$("xRSSContent").hide();
	     $("xRSSContentError").hide();
		// alert("hide called22..");
	}	
	
	function _initPage(){
        hideAllContent();	
        //$("xRSSContent").show();
		var feed=new google.feeds.Feed('http://rss.cnn.com/rss/cnn_topstories.rss'); //Google Feed API method
		feed.setResultFormat(google.feeds.Feed.MIXED_FORMAT);		
		feed.setNumEntries('10'); //Google Feed API method
		feed.load(getRssContentFromGoogle); //Google Feed API method
	}
	
 	window.onload=function(){
		_initPage();
	} 	
</script>
			
</body>
</html>  
